package lab02.Test16;

/**
 * Created by Administrator on 2017/10/23.
 */
public class Test16 {
    public static void main(String[] args) {
        Add add1;
        Add add2 = new Add();
        add1 = add2;
        Divide divide1;
        Divide divide2 = new Divide();
        divide1 = divide2;
        Multiply multiply1;
        Multiply multiply2 = new Multiply();
        multiply1 = multiply2;
        Subtract subtract1;
        Subtract subtract2 = new Subtract();
        System.out.println("加法："+add1.Add(4,4));
        System.out.println("减法："+subtract2.Subtract(4,4));
        System.out.println("除法："+divide2.Divide(4,4));
        System.out.println("乘法："+multiply2.Multiply(4,4));
    }
}
